package IO;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.channels.ReadableByteChannel;
import java.util.Scanner;

public class IODemo7 {
    public static void main(String[] args) {
        try (OutputStream outputStream = new FileOutputStream("./hello.txt")){
            outputStream.write(97);
            outputStream.write(98);
            outputStream.write(99);
            outputStream.write(100);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
